package com.chen.palmar.entity;

import android.text.TextUtils;

import java.util.List;

/**
 * Created by chen on 2018/1/3.
 */

public class TagListEntity {


    /**
     * resultCode : 1000
     * message : null
     * error : null
     * data : [{"labelId":1,"name":"蜜饯干果"},{"labelId":2,"name":"进口美食"},{"labelId":3,"name":"熟食小吃"},{"labelId":4,"name":"儿童食品"}]
     * dataReserve1 : null
     * dataReserve2 : null
     * navigatePageNumbers : null
     */

    private int resultCode;
    private String message;
    private String error;
    private String dataReserve1;
    private String dataReserve2;
    private String navigatePageNumbers;
    private List<DataBean> data;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getDataReserve1() {
        return dataReserve1;
    }

    public void setDataReserve1(String dataReserve1) {
        this.dataReserve1 = dataReserve1;
    }

    public String getDataReserve2() {
        return dataReserve2;
    }

    public void setDataReserve2(String dataReserve2) {
        this.dataReserve2 = dataReserve2;
    }

    public String getNavigatePageNumbers() {
        return navigatePageNumbers;
    }

    public void setNavigatePageNumbers(String navigatePageNumbers) {
        this.navigatePageNumbers = navigatePageNumbers;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * labelId : 1
         * name : 蜜饯干果
         */

        private int labelId;
        private String name;

        public int getLabelId() {
            return labelId;
        }

        public void setLabelId(int labelId) {
            this.labelId = labelId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public String toString() {
            if (!TextUtils.isEmpty(name)) {
                return name;
            }
            return super.toString();
        }
    }
}
